package com.stack.admin.controller.v1;



import com.stack.admin.service.AdUserService;
import com.stack.model.admin.pojos.AdUser;
import com.stack.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
/**
 * @author llz
 * @date 2023/11/15 9:33
 * @description
 */
@RestController
@RequestMapping("/login")
public class AdLoginController {

    @Resource
    private AdUserService adUserService;

    @PostMapping("/in")
    public ResponseResult login(@RequestBody AdUser user) {
        return adUserService.login(user);
    }
}
